package com.aaa.maintain.service.impl;

import com.aaa.entity.OperLog;
import com.aaa.maintain.dao.SiteOperLogDao;
import com.aaa.maintain.service.SiteOperLogService;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 荆豪峰
 * @version 1.0
 * #Date: 2023/3/2 19:56
 */
@Service
public class SiteOperLogServiceImpl implements SiteOperLogService {
    @Autowired
    private SiteOperLogDao siteOperLogDao;
    @Override
    public Result selectoperlog() {
        List<OperLog> selectInsert = siteOperLogDao.selectInsert();
        List<OperLog> selectDelete = siteOperLogDao.selectDelete();
        List<OperLog> operLogs = siteOperLogDao.selectAdd();
        ArrayList<List> list = new ArrayList<>();
        list.add(selectInsert);
        list.add(selectDelete);
        list.add(operLogs);
        return new Result(2000,"成功",list);
    }
}
